import 'dart:convert';

SelfReadingDto selfReadingDtoFromJson(String str) =>
    SelfReadingDto.fromJson(json.decode(str));

String selfReadingDtoToJson(SelfReadingDto data) => json.encode(data.toJson());

class SelfReadingDto {
  SelfReadingDto(
      {this.complete,
      this.end,
      this.onlyWithRecording,
      this.onlyWithWriting,
      this.progress,
      this.start});
  bool? complete;
  bool? onlyWithRecording;
  bool? onlyWithWriting;
  bool? progress;
  int? end;
  int? start;

  factory SelfReadingDto.fromJson(Map<String, dynamic> json) => SelfReadingDto(
        start: json["start"],
        end: json["end"],
        complete: json["complete"],
        progress: json["progress"],
        onlyWithRecording: json["onlyWithRecording"],
        onlyWithWriting: json["onlyWithWriting"],
      );

  Map<String, dynamic> toJson() => {
        "start": start,
        "end": end,
        "complete": complete,
        "progress": progress,
        "onlyWithRecording": onlyWithRecording,
        "onlyWithWriting": onlyWithWriting
      };
}
